package cn.ronghuanet.auth.service.impl;

import cn.ronghuanet.auth.domain.Permission;
import cn.ronghuanet.auth.mapper.PermissionMapper;
import cn.ronghuanet.auth.query.PermissionQuery;
import cn.ronghuanet.auth.service.IPermissionService;
import cn.ronghuanet.base.service.impl.BaseServiceImpl;
import cn.ronghuanet.base.util.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements IPermissionService {
    @Autowired
    private PermissionMapper mapper;


    @Override
    public void delete() {
        mapper.delete();
    }


    @Override
    public List<Permission> getAllPermission() {
        return mapper.selectAll();
    }

    @Override
    public List<String> getAllPermissionsns() {
        return mapper.getAllPermissionsns();
    }

    @Override
    public List<String> getPermissionSnsById(Long id) {
        return mapper.getPermissionSnsById(id);
    }
}
